<style type="text/css">
	table{
	   font-family: Arial;
       font-size: 10pt;
	}
    .tableTd {
	   	border-width: 0.5pt; 
		border: solid silver; 
        text-align: center;
        /*width: 30px*/
        
	}
	.tableTdContent{
		border-width: 0.5pt; 
		border: solid silver;
        text-align: center;
        /*width: 30px*/
	}
	.titles{
		font-weight: bolder;
        background-color: #B1D6AB;
	}
    .cd{
        font-family: Arial; 
        font-size: 12pt;
    } 
    .cdinfo{
        font-family: Arial; 
        font-size: 12pt;
        color:#0080FF;
    }
    .ds{
        font-family: Arial;
         color:green; 
         font-size: 14pt; 
    }
    .diemrl{
        width:  38px;
        border-width: 0.5pt; 
		border: solid silver;
    }
    .diemtbhk{
        width:  46px;
        border-width: 0.5pt; 
		border: solid silver;
        /*background-color: #B1D6AB;*/
    }
    .hoten{
        width:  140px;
        border-width: 0.5pt; 
		border: solid silver;
    }
    .chidoan{
        width:  140px;
        border-width: 0.5pt; 
		border: solid silver;
    }
    .mssv{
        width:  60px;
        border-width: 0.5pt; 
		border: solid silver;
    }
    .stt{
    width:  20px;
    border-width: 0.5pt; 
	border: solid silver;
    }
</style>
<table cellpadding="0" cellspacing="0">
<tr>
    <td colspan="3">ĐOÀN TNCS HCM TRƯỜNG ĐẠI HỌC CẦN THƠ</td>
    <td colspan="3">Cần Thơ, ngày <?php echo date("d");?> tháng <?php echo date("m");?> năm <?php echo date("Y");?></td>
</tr>
<tr>
    <td colspan="3">BCH ĐOÀN KHOA CÔNG NGHỆ TT&TT</td>
    <td></td>
    <td colspan="2"></td>
</tr>
<tr>
    <td colspan="4">Số: 02/BC.ĐTN</td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td></td>    
    <td colspan="4" align="center">
        <center class="ds"><b>BÁO CÁO <br />
              KẾT QUẢ BÌNH XÉT ĐOÀN VIÊN ƯU TÚ <br /></b></center>
    </td>    
    <td></td>
</tr>
<tr>    
    <td></td>    
    <td colspan="4" align="center"><center>
        Học kỳ: <?php echo substr($session->read('hockyht_ten'),0,1);?>
        - Năm học: <?php echo $session->read('namhocht_ten');?>
        </center>
    </td>    
    <td></td>
</tr>
<tr>
    <td></td>
    <td colspan="4" align="center"><center>Kính gởi:	BCH Đoàn trường ĐH Cần Thơ</center></td>
    <td></td>
</tr>
<tr>    
    <td colspan="3" >Tổng số ĐV(nữ):  </td>
    
    <td colspan="3">Số ĐV cán bộ:  <?php //echo count($phanloaicbs);?></td> 
    
</tr>
<tr>
    <td colspan="3" >ĐV được phân loại xuất sắc:  </td>
    
    <td colspan="3"></td> 
    
</tr>
<tr>
    <td colspan="3" >Kết quả bình xét Đoàn viên ưu tú:<?php echo count($dvutsvs)+count($dvutcbs);?>  </td>
    
    <td colspan="3">ĐV cán bộ: <?php echo count($dvutcbs);?></td> 

</tr>
    <tr>
        <td colspan="6"><br /></td>
    </tr>
    <tr>    
            <th class="stt" style="font-weight: bolder;background-color: #B1D6AB;" ><?php  __('STT');?></th>
			<th class="mssv" style="font-weight: bolder;background-color: #B1D6AB;" ><?php __('Họ Tên');?></th>
			<th class="hoten" style="font-weight: bolder;background-color: #B1D6AB;" ><?php __('MSSV/MSCB');?></th>
            <th class="tableTd" style="font-weight: bolder;background-color: #B1D6AB;" ><?php __('Chi Đoàn');?></th>
            <th class="diemtbhk" style="font-weight: bolder;background-color: #B1D6AB;" ><?php __('Điểm TBHK');?></th>
            <th class="diemrl" style="font-weight: bolder;background-color: #B1D6AB;" ><?php __('Điểm RL');?></th>         
	</tr>
	<?php
	$i = 0;
	foreach ($dvutcbs as $dvutcb):
    $khoa_id=$session->read('khoa_id');
    if($dvutcb['Chidoansv']['khoa_id']==$khoa_id):
    $i++;		
	?>
	<tr>
        <td class="stt"><?php echo $i;?></td>    
        <td class="hoten"><?php echo $dvutcb['Z1dvutcb']['hoten']; ?></td>
        <td class="mssv"><?php echo $dvutcb['Z1dvutcb']['mssv']; ?></td>
		<td class="chidoan"><?php echo $dvutcb['Chidoansv']['tenchidoan']; ?>&nbsp;</td>
		<td class="diemtbhk">&nbsp;</td>
        <td class="diemrl">&nbsp;</td>          
	</tr>
    <?php endif;?>
    <?php endforeach; ?>
    <?php 
    foreach ($dvutsvs as $dvutsv):
    $i++;		
    $khoa_id=$session->read('khoa_id');
    if($dvutsv['Chidoansv']['khoa_id']==$khoa_id):
	?>
	<tr>
        <td class="stt"><?php echo $i;?></td>    
        <td class="hoten"><?php echo $dvutsv['Z1dvutsv']['hoten']; ?></td>
        <td class="mssv"><?php echo $dvutsv['Z1dvutsv']['mssv']; ?></td>
		<td class="chidoan"><?php echo $dvutsv['Chidoansv']['tenchidoan']; ?>&nbsp;</td>
		<td class="diemtbhk"><?php echo $dvutsv['Z1dvutsv']['diemtbhk']?>&nbsp;</td>
        <td class="diemrl"><?php echo $dvutsv['Z1dvutsv']['diemrenluyen']?>&nbsp;</td>          
	</tr>
    <?php endif;?>
    <?php endforeach; ?>
    

	</table>